package com.jcl.recruit.console;

import com.jcl.recruit.console.mapper.ConsoleDbServerMapper;
import com.jcl.recruit.console.model.ConsoleDbServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName ConsoleDbServerDao
 * @Author yyliu
 * @Date 2018/12/14 9:45
 * @Version 1.0
 **/
@Component
public class ConsoleDbServerDao implements ConsoleDbServerMapper {

    @Autowired
    private ConsoleDbServerMapper consoleDbServerMapper;

    @Override
    public List<ConsoleDbServer> findList() {
        return consoleDbServerMapper.findList();
    }

    @Override
    public List<ConsoleDbServer> findListByPrefix(String prefix) {
        return consoleDbServerMapper.findListByPrefix(prefix);
    }

    @Override
    public ConsoleDbServer findOne(Integer id) {
        return consoleDbServerMapper.findOne(id);
    }

    @Override
    public ConsoleDbServer findOneByServerName(String serverName) {
        return consoleDbServerMapper.findOneByServerName(serverName);
    }

    @Override
    public int add(ConsoleDbServer entity) {
        return consoleDbServerMapper.add(entity);
    }

    @Override
    public int update(ConsoleDbServer entity) {
        return consoleDbServerMapper.update(entity);
    }
}
